<include file="Public:header" />

<div class=" container-fuid ">

	<div class="row">
		<div class="col-lg-12 col-md-12 col-xs-12" style="background-color: #FFF;">

			<blockquote>
				<p>订单管理</p>
			</blockquote>

			<table class="table ta">
				<thead>
					<tr>
						<th>订单号</th>

						<th>下单时间</th>
						<th>订单金额</th>
						<th>订单状态</th>
						<th>结束时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="shoporderlist" id="vo">
						<tr>
							<td>{$vo.oid}</td>

							<td>{$vo.order_ctime|date="Y-m-d H:i",###}</td>
							<td>{$vo.orderprice}</td>
							<td>
								<switch name="vo.orderstatus">

									<case value="4">已完成</case>
									<case value="5">送货中</case>
									<default />
									提交成功
								</switch>
							</td>
							<td>
								<empty name="vo.order_endtime">
									<else />
									{$vo.order_endtime|date="Y-m-d H:i",###}
								</empty>
							</td>
							<td>
								<a href="{:U('Member/orderdetail/','id='.$vo['oid'])}" data-target="#ajax_target" data-trigger="ajax">查看</a>
								&nbsp;&nbsp;
								<switch name="vo.orderstatus">

									<case value="4"></case>
									<default />
									<a href="{:U('Member/orderend/','id='.$vo['oid'])}" >出单</a>
								</switch>

							</td>

						</tr>
					</volist>

				</tbody>
			</table>

			<div class="row">
				<div class="col-md-7 col-sm-12"></div>
				<div class="col-md-5 col-sm-12">

					<ul class="pagination pull-right">{$page}</ul>

				</div>

			</div>

			<div id="ajax_target"></div>

		</div>
	</div>

</div>
<!-- end container -->

<include file="Public:foot" />